﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


/// <summary>
/// 结果代码
/// </summary>
public class ResultException : Exception
{
    public int Code { get; set; } = 0;
    public bool Success { get; set; } = false;
    public string Message { get; set; }
    public ResultException()
    { }
    public ResultException(string message) : base(message)
    { }
    public ResultException(int code, string message) : base(message)
    {
        this.Code = code;
    }
}

/// <summary>
/// 未授权异常
/// </summary>
public class UnAuthorizeException : Exception
{
    public UnAuthorizeException()
    { }

    public UnAuthorizeException(string message) : base(message)
    { }
}
/// <summary>
/// 未登录异常
/// </summary>
public class UnLoginException : Exception
{

    public UnLoginException()
    { }

    public UnLoginException(string message) : base(message)
    { }
}
